/*

	Color.h
	
	Header file containing definitions for color
	types.
	
	Written by Sigurd Suhm 2009

*/

#ifndef _COLOR_H
#define _COLOR_H

namespace EraAstral
{
	// Color class with RGBA components using floats
	class Color4f
	{
		private:
			float	m_data[4];
			
		public:
			// References to components
			float	&R, &G, &B, &A;		
		
			// Default constructor
			Color4f();
			// Constructor setting components
			Color4f(float r, float g, float b, float a);
			// Default destructor
			~Color4f();
			
			// Sets the color
			void Set(const Color4f& color);
			
			// Returns a pointer to the color data
			const float		*GetData() const;
	};
}

#endif		// _COLOR_H